package com.yisoo.ubag.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yisoo.common.utils.PageUtils;
import com.yisoo.common.utils.R;
import com.yisoo.ubag.app.entity.PayEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 
 *
 * @author mmciel
 * @email 761998179@qq.com
 * @date 2021-04-16 23:19:13
 */
public interface PayService extends IService<PayEntity> {

    PageUtils queryPage(Map<String, Object> params);

//    R showPay(String uid);
//
//    R initPay(String uid);

    R getBalance(String uid);

    BigDecimal getBalanceData(String uid);

    boolean checkNewUser(String uid);

    PayEntity getPayByUidWithNoPayToCreatePay(String uid);

    R getCoupon(String uid);

    R useCoupon(String uid, Integer cid);
}

